Skip to content

DOC: Capture recent CI lessons in Documentation/AI/ skill files#6040

Merged
hjmjohnson merged 2 commits intoInsightSoftwareConsortium:mainfrom
hjmjohnson:doc-ai-skill-updates-clean
Apr 16, 2026
Merged

DOC: Capture recent CI lessons in Documentation/AI/ skill files#6040
hjmjohnson merged 2 commits intoInsightSoftwareConsortium:mainfrom
hjmjohnson:doc-ai-skill-updates-clean

Conversation

@hjmjohnson
Copy link
Copy Markdown
Member

@hjmjohnson hjmjohnson commented Apr 10, 2026

Update Documentation/AI/ skill files with CI lessons learned and revised attribution rules based on community feedback. Closes #6055.

Commit 1: CI lessons and code-review patterns
  • git-commits.md, style.md — drop WIP: prefix, add BUILD:, document [WIP] PR-title workflow
  • compiler-cautions.md — KWStyle enum class pitfall (§12), NumericTraits float range (§13)
  • testing.md — GTest exception macros (ITK_TRY_EXPECT_EXCEPTION incompatible with GoogleTest)
  • attribution.md — initial attribution rules
  • code-review-lessons.md — new file capturing recurring review patterns
Commit 2: Revise attribution rules per #6055 feedback

Incorporates feedback from N-Dekker (#6055 comment), blowekamp (Discourse #7728 post #16), and dzenanz (#6055 comment):

  • Remove AI trailers from commitsTool-Assisted: and Assisted-by: trailers removed. AI disclosure moves entirely to PR description inside <details> blocks.
  • Co-Authored-By: for AI → "discouraged" (was "never") — acknowledges N-Dekker's GitHub-linking-semantics argument while noting blowekamp's preference for no AI info in commits.
  • Reviewer vs co-author distinctionCo-Authored-By: only for design-shaping feedback, not routine review. Per N-Dekker: "A reviewer may not completely agree with the PR... A co-author usually does."
  • Stronger brevity guidance — PR descriptions must lead with 1-3 line visible summary; all longer analysis in collapsed <details> blocks. Per dzenanz: "commit messages and PR body should be concise."
  • PR description is sole AI disclosure mechanism — commits are clean.

@github-actions github-actions bot added type:Documentation Documentation improvement or change area:Documentation Issues affecting the Documentation module labels Apr 10, 2026
@hjmjohnson hjmjohnson closed this Apr 10, 2026
@hjmjohnson hjmjohnson deleted the doc-ai-skill-updates-clean branch April 10, 2026 19:07
@hjmjohnson hjmjohnson restored the doc-ai-skill-updates-clean branch April 10, 2026 19:15
@hjmjohnson hjmjohnson reopened this Apr 10, 2026
@hjmjohnson hjmjohnson marked this pull request as ready for review April 10, 2026 21:07
@greptile-apps

This comment was marked as resolved.

Comment thread Documentation/AI/compiler-cautions.md Outdated
@hjmjohnson hjmjohnson force-pushed the doc-ai-skill-updates-clean branch 5 times, most recently from 968d8ee to 9e9d8d5 Compare April 12, 2026 12:25
@blowekamp

This comment was marked as off-topic.

@hjmjohnson

This comment was marked as off-topic.

@blowekamp

This comment was marked as off-topic.

@hjmjohnson

This comment was marked as off-topic.

@hjmjohnson hjmjohnson force-pushed the doc-ai-skill-updates-clean branch 3 times, most recently from 12eedae to c2ea712 Compare April 14, 2026 12:51
@hjmjohnson hjmjohnson requested review from blowekamp and dzenanz April 14, 2026 16:26
@hjmjohnson hjmjohnson force-pushed the doc-ai-skill-updates-clean branch from c2ea712 to bab0248 Compare April 14, 2026 17:19
@hjmjohnson
Copy link
Copy Markdown
Member Author

@blowekamp @N-Dekker @thewtex @dzenanz I think these are in a reasonable state to consider now. After these updates, Greptile will be able to better enforce the "historical community perspectives" as represented by these rules extracted from various commit, PR-comment, and discourse comments.

Comment thread Documentation/AI/git-commits.md
@hjmjohnson hjmjohnson force-pushed the doc-ai-skill-updates-clean branch from bab0248 to cb73c5a Compare April 14, 2026 20:18
@hjmjohnson hjmjohnson requested a review from N-Dekker April 14, 2026 20:20
Comment thread Documentation/AI/attribution.md Outdated
Comment thread Documentation/AI/attribution.md
Comment thread Documentation/AI/code-review-lessons.md Outdated
Comment thread Documentation/AI/git-commits.md
@hjmjohnson hjmjohnson force-pushed the doc-ai-skill-updates-clean branch 2 times, most recently from 0a91cb6 to d6c9dc0 Compare April 14, 2026 22:16
@hjmjohnson hjmjohnson requested a review from thewtex April 14, 2026 22:17
@hjmjohnson hjmjohnson force-pushed the doc-ai-skill-updates-clean branch 2 times, most recently from 1aea1f9 to a7ea626 Compare April 16, 2026 02:00
…ion/AI/

Add and expand AI agent guidance files based on lessons from recent PRs
(ccache fixes, compiler flag removal, backports, attribution policy):

- attribution.md: commit/PR attribution rules for AI-assisted work
- code-review-lessons.md: patterns from 50+ reviewed PRs
- compiler-cautions.md: new sections on unused-variable warnings,
  declare-then-assign pitfalls, refactoring checklist
- conventions.md: ITK class/CMake/wrapping conventions
- enforced-code-style.md: renamed from style.md, expanded
- git-commits.md: hook enforcement, pre-commit checklist, deduplication
  with attribution.md (now cross-references instead of duplicating)
- pull-requests.md: AI disclosure requirements
- testing.md: targeted ctest patterns
- AGENTS.md: updated routing table for new/renamed files
…community feedback

Incorporate feedback from N-Dekker, blowekamp, and dzenanz:

- Remove Tool-Assisted: and Assisted-by: trailers from commit
  guidance — AI disclosure moves entirely to the PR description
  inside <details> blocks (blowekamp's position)
- Change Co-Authored-By: for AI from "never" to "discouraged"
  with rationale, acknowledging the open question (N-Dekker's
  GitHub-linking-semantics argument)
- Distinguish reviewer Co-Authored-By: (design-shaping feedback)
  from review acknowledgment (prose mention) per N-Dekker's
  reviewer-vs-coauthor distinction
- Strengthen brevity guidance: PR descriptions use collapsed
  <details> sections by default, keeping only 1-3 line summary
  visible (dzenanz's conciseness feedback)
- Make PR description the primary and sole mechanism for AI
  disclosure, with commit messages containing no AI attribution

Closes InsightSoftwareConsortium#6055
@hjmjohnson hjmjohnson force-pushed the doc-ai-skill-updates-clean branch from a7ea626 to 5626cc7 Compare April 16, 2026 12:51
@hjmjohnson

This comment was marked as off-topic.

@hjmjohnson
Copy link
Copy Markdown
Member Author

@hjmjohnson
Copy link
Copy Markdown
Member Author

@dzenanz , @blowekamp , @thewtex, @N-Dekker, @hjmjohnson, I think this has addressed all the issues and improvements requested. THANK YOU all for commenting, expanding the scope, revising, and refining the language in these documents that capture the common failure modes and pain points for reviewers.

Greptile can provide more automated feedback before human reviewers need to intervene.

Currently, Greptile only runs on non-draft PR's, but I think it would help identify failure modes in drafts early in the review cycle so that they may be fixed before needing community responses.

@hjmjohnson hjmjohnson enabled auto-merge April 16, 2026 13:05
@hjmjohnson hjmjohnson disabled auto-merge April 16, 2026 13:53
Copy link
Copy Markdown
Member

@thewtex thewtex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 thanks for working on this, Hans!

@hjmjohnson hjmjohnson merged commit ac544b4 into InsightSoftwareConsortium:main Apr 16, 2026
6 checks passed
@hjmjohnson hjmjohnson deleted the doc-ai-skill-updates-clean branch April 16, 2026 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:Documentation Issues affecting the Documentation module type:Documentation Documentation improvement or change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DOC: Define commit message attribution rules for AI-assisted contributions

4 participants